package com.yijumao.dao;

import com.yijumao.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author konley
 * @date 2020-10-19 22:09
 */
@Repository
public interface UserDao {
    /**
     * description: 保存用户
     * @param user
     * @return void
     */
    void save(User user);

    /**
     * description: 用户登录
     * @param username
     * @param password
     * @return User
     */
    User login(@Param("username") String username,@Param("password") String password);
}
